﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text; 

namespace PresentationLayer.Views
{
    //using System.Windows.Forms;
    //using WinFormsMvp.Forms;
    //using WinFormsMvp;
    //using PresentationLayer.Presenters;
    //using EngineLayer;
    //using PresentationLayer.Properties;
    //using PresentationLayer.Views.ViewContracts;

    //[PresenterBinding(typeof(CommonCatalogPresenter))]
    //public class CommonCatalogControl : MvpUserControl<CatalogsModel>, ICommonCatalogView
    //{
    //    #region Private Declarations
    //    private Button btnSave;
    //    private Button btnCancel;
    //    private Panel panelTop;
    //    private GroupBox groupBox3;
    //    private Button btnUpdate;
    //    private GroupBox groupBox2;
    //    private Button btnAdd;
    //    private GroupBox groupBox1;
    //    private TextBox textBox1;
    //    private Panel panelGrid;
    //    private Panel panelBottom;
    //    #endregion

    //    protected override void OnLoad(EventArgs e)
    //    {
    //        base.OnLoad(e);

    //        this.InitializeComponent();
    //    }

    //    private void InitializeComponent()
    //    {
    //        this.btnSave = new Button();
    //        this.btnCancel = new Button();
           
    //        this.panelTop = new Panel();
    //        this.groupBox3 = new GroupBox();
    //        this.btnUpdate = new Button();
    //        this.groupBox2 = new GroupBox();
    //        this.btnAdd = new Button();
    //        this.groupBox1 = new GroupBox();
    //        this.textBox1 = new TextBox();
    //        this.panelGrid = new Panel();
    //        this.panelBottom = new Panel();

    //        this.panelBottom.SuspendLayout();
    //        this.panelGrid.SuspendLayout();
    //        this.panelTop.SuspendLayout();
    //        this.groupBox3.SuspendLayout();
    //        this.groupBox2.SuspendLayout();
    //        this.groupBox1.SuspendLayout();
    //        this.panelGrid.SuspendLayout();
    //        this.SuspendLayout();
    //        // 
    //        // btnSave
    //        // 
    //        this.btnSave.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right)));
    //        this.btnSave.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    //        this.btnSave.Location = new System.Drawing.Point(678, 16);
    //        this.btnSave.Name = "btnSave";
    //        this.btnSave.Size = new System.Drawing.Size(80, 25);
    //        this.btnSave.TabIndex = 2;
    //        this.btnSave.Text = "Guardar";
    //        this.btnSave.UseVisualStyleBackColor = true;
    //        ///    this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
    //        // 
    //        // btnCancel
    //        // 
    //        this.btnCancel.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right)));
    //        this.btnCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    //        this.btnCancel.Location = new System.Drawing.Point(764, 15);
    //        this.btnCancel.Name = "btnCancel";
    //        this.btnCancel.Size = new System.Drawing.Size(83, 26);
    //        this.btnCancel.TabIndex = 3;
    //        this.btnCancel.Text = "Cancel";
    //        this.btnCancel.UseVisualStyleBackColor = true;
    //        this.btnCancel.Click += new System.EventHandler(OnClickButton);

    //        // 
    //        // panelCommon
    //        // 
    //        this.panelTop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
    //        this.panelTop.Controls.Add(this.groupBox3);
    //        this.panelTop.Controls.Add(this.groupBox2);
    //        this.panelTop.Controls.Add(this.groupBox1);
    //        this.panelTop.Dock = DockStyle.Top;
    //        this.panelTop.Location = new System.Drawing.Point(0, 0);
    //        this.panelTop.Name = "panelTop";
    //        this.panelTop.Size = new System.Drawing.Size(875, 116);
    //        this.panelTop.TabIndex = 19;
    //        // 
    //        // groupBox3
    //        // 
    //        this.groupBox3.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
    //        this.groupBox3.Controls.Add(this.btnUpdate);
    //        this.groupBox3.Location = new System.Drawing.Point(734, 14);
    //        this.groupBox3.Name = "groupBox3";
    //        this.groupBox3.Size = new System.Drawing.Size(113, 89);
    //        this.groupBox3.TabIndex = 21;
    //        this.groupBox3.TabStop = false;
    //        this.groupBox3.Text = "Actualizar en Linea";
    //        // 
    //        // btnUpdate
    //        // 
    //        this.btnUpdate.Anchor = AnchorStyles.None;
    //        this.btnUpdate.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)), true);
    //        this.btnUpdate.ForeColor = System.Drawing.Color.Black;
    //        //   this.btnUpdate.Image = ((System.Drawing.Image)(resources.GetObject("btnUpdate.Image")));
    //        this.btnUpdate.Location = new System.Drawing.Point(17, 14);
    //        this.btnUpdate.Name = "btnUpdate";
    //        this.btnUpdate.Size = new System.Drawing.Size(79, 61);
    //        this.btnUpdate.TabIndex = 18;
    //        this.btnUpdate.Tag = "Actualizar Catalogo en linea.";
    //        this.btnUpdate.UseVisualStyleBackColor = true;
    //        //       this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
    //        // 
    //        // groupBox2
    //        // 
    //        this.groupBox2.Controls.Add(this.btnAdd);
    //        this.groupBox2.Location = new System.Drawing.Point(475, 14);
    //        this.groupBox2.Name = "groupBox2";
    //        this.groupBox2.Size = new System.Drawing.Size(62, 89);
    //        this.groupBox2.TabIndex = 20;
    //        this.groupBox2.TabStop = false;
    //        this.groupBox2.Text = "Agregar";
    //        // 
    //        // btnAdd
    //        // 
    //        this.btnAdd.Anchor = AnchorStyles.None;
    //        //   this.btnAdd.Image = ((System.Drawing.Image)(resources.GetObject("btnAdd.Image")));
    //        this.btnAdd.Location = new System.Drawing.Point(11, 28);
    //        this.btnAdd.Name = "btnAdd";
    //        this.btnAdd.Size = new System.Drawing.Size(39, 43);
    //        this.btnAdd.TabIndex = 17;
    //        this.btnAdd.UseVisualStyleBackColor = true;
    //        //        this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
    //        // 
    //        // groupBox1
    //        // 
    //        this.groupBox1.Controls.Add(this.textBox1);
    //        this.groupBox1.Location = new System.Drawing.Point(12, 14);
    //        this.groupBox1.Name = "groupBox1";
    //        this.groupBox1.Size = new System.Drawing.Size(457, 89);
    //        this.groupBox1.TabIndex = 19;
    //        this.groupBox1.TabStop = false;
    //        this.groupBox1.Text = "Busqueda";
    //        // 
    //        // textBox1
    //        // 
    //        this.textBox1.Location = new System.Drawing.Point(16, 37);
    //        this.textBox1.Name = "textBox1";
    //        this.textBox1.Size = new System.Drawing.Size(419, 20);
    //        this.textBox1.TabIndex = 0;
    //        //  this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
    //        // 
    //        // panelBottom
    //        this.panelBottom.Controls.Add(this.btnSave);
    //        this.panelBottom.Controls.Add(this.btnCancel);
    //        this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
    //        this.panelBottom.Location = new System.Drawing.Point(0, 479);
    //        this.panelBottom.Name = "panelBottom";
    //        this.panelBottom.Size = new System.Drawing.Size(875, 51);
    //        this.panelBottom.TabIndex = 21;
    //        // 
    //        // panelGrid
    //        this.panelGrid.Dock = System.Windows.Forms.DockStyle.Fill;
    //        this.panelGrid.Location = new System.Drawing.Point(0, 116);
    //        this.panelGrid.Name = "panelGrid";
    //        this.panelGrid.Size = new System.Drawing.Size(875, 414);
    //        this.panelGrid.TabIndex = 22;
    //        // 
    //        // ProductForm
    //        // 
    //        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    //        this.AutoScaleMode = AutoScaleMode.Font;
    //        this.ClientSize = new System.Drawing.Size(875, 530);
    //        this.Controls.Add(this.panelGrid);
    //        this.Controls.Add(this.panelTop);
    //        this.Controls.Add(this.panelBottom);
            
    //        this.Name = "CommonCatalogControl";
    //        this.Text = "";
    //        this.panelBottom.ResumeLayout(false);
    //        this.panelGrid.ResumeLayout(false);
    //        this.panelTop.ResumeLayout(false);
    //        this.groupBox3.ResumeLayout(false);
    //        this.groupBox2.ResumeLayout(false);
    //        this.groupBox1.ResumeLayout(false);
    //        this.groupBox1.PerformLayout();
    //        this.panelGrid.ResumeLayout(false);
    //        this.ResumeLayout(false);
    //    }

    //    private void OnClickButton(object sender, EventArgs e)
    //    {
    //        CloseFormClicked(null, EventArgs.Empty);
    //    }

    //    #region Implementation of ICommonCatalogView

    //    public event EventHandler CloseFormClicked;

    //    public void CloseForm()
    //    {
    //        this.Dispose();
    //    }
    //    #endregion
    //}
}
